package com.park.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.park.entity.Recharge;
import com.park.mapper.ParkMapper;
import com.park.mapper.RechargeMapper;
import com.park.service.RechargeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class RechargeServiceImpl extends ServiceImpl<RechargeMapper, Recharge> implements RechargeService {
    @Resource
    private RechargeMapper rechargeMapper;
    @Override
    public IPage<Recharge> getByRechargeId(Page<?> page, int id) {
        return baseMapper.getByRechargeId(page, id);
    }

    @Override
    public int addRecharge(Recharge recharge){return rechargeMapper.insert(recharge);}
}
